package com.oig.base.api;


import com.oig.base.api.factory.CurrencyFallBackFactory;
import com.oig.sys.base.vo.CurrencyVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId="currencyService",value="sys-base-server",path="/currency",fallbackFactory= CurrencyFallBackFactory.class)
public interface CurrencyService {

    //@Operation(summary = "获取币种信息")
    @GetMapping(value = "/getCurrency/{code}")
    CurrencyVo getCurrency(@PathVariable("code") String code);

    /**
     * 获取所有币种，定时任务用
     */
    @GetMapping(value = "/listAll")
    List<CurrencyVo> listAll();

}
